import { Router } from 'vue-router'
import { piniaOidcCreateRouterMiddleware } from 'pinia-oidc'
import { useOidcStoreWithOut } from '@/tools/oidc'

export function createOidcGuard(router: Router) {
  //创建路由中间件
  // @ts-ignore
  router.beforeEach(piniaOidcCreateRouterMiddleware(useOidcStoreWithOut()))
}
